<div id="content_header">
  <h3>Register a new Currency</h3>
</div>

<div class="row">
  <div class="col-md-6 col-lg-4">
    <form name="currencyTypeForm" role="form" ng-submit="addCurrency()">

      <div class="form-group" ng-class="{ 'has-error': errors.Code}">
        <label class="required" for="Code">Currency Code</label>
        <input type="text" name="Code" class="form-control" id="Code" placeholder="Input field" ng-model="currencyNew.Code" required>
        <error-widget field="errors.Code"></error-widget>
      </div>

      <div class="form-group" ng-class="{ 'has-error': errors.Name}">
        <label class="required" for="CurrencyName">Currency Name</label>
        <input type="text" name="CurrencyName" class="form-control" id="CurrencyName" placeholder="Input field" ng-model="currencyNew.CurrencyName" required>
        <error-widget field="errors.Name"></error-widget>
      </div>

      <!-- <div class="form-g ng-class="{ 'has-error': errors.FullName}"roup">
        <label class="required" for="RupiahRate">Rupiah Rate</label>
        <span class="error" ng-show="currencyTypeForm.RupiahRate.$error.required">Required!</span>
        <input type="number" name="RupiahRate" class="form-control" id="RupiahRate" placeholder="Input field" ng-model="currencyNew.RupiahRate" min="10000" max="10000000000000" step="1000" required>
        <small>{{ currencyNew.RupiahRate | currency:'Rp ' }}</small>
        <error-widget field="errors.FullName"></error-widget>
      </div> -->

      <button type="submit" class="btn btn-primary" >Submit</button>
    </form>
  </div>
</div>